package entity;

import java.io.Serializable;

/**
 * @Description: TODO
 * @author: 李展鹏
 * @date: 2024年01月18日19:17
 */
public class SysRole implements Serializable {
    private Integer id;     //主键ID
    private String code;    //角色编码
    private String roleName;    //角色名称
    private Integer createdUserId;  //创建者
    private String createdTime;     //创建时间
    private Integer updatedUserId;      //修改者
    private String updatedTime;         //修改时间

    /**
     * 类的无参构造
     */
    public SysRole() {
    }

    /**
     * 类的带参构造
     * @param id
     * @param code
     * @param roleName
     * @param createdUserId
     * @param createdTime
     * @param updatedUserId
     * @param updatedTime
     */
    public SysRole(Integer id, String code, String roleName, Integer createdUserId, String createdTime, Integer updatedUserId, String updatedTime) {
        this.id = id;
        this.code = code;
        this.roleName = roleName;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
    }

    /**
     * 类的带参构造
     * @param code
     * @param roleName
     * @param createdUserId
     * @param createdTime
     * @param updatedUserId
     * @param updatedTime
     */
    public SysRole(String code, String roleName, Integer createdUserId, String createdTime, Integer updatedUserId, String updatedTime) {
        this.code = code;
        this.roleName = roleName;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getCreatedUserId() {
        return createdUserId;
    }

    public void setCreatedUserId(Integer createdUserId) {
        this.createdUserId = createdUserId;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public Integer getUpdatedUserId() {
        return updatedUserId;
    }

    public void setUpdatedUserId(Integer updatedUserId) {
        this.updatedUserId = updatedUserId;
    }

    public String getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(String updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return "SysRole{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", roleName='" + roleName + '\'' +
                ", createdUserId=" + createdUserId +
                ", createdTime='" + createdTime + '\'' +
                ", updatedUserId=" + updatedUserId +
                ", updatedTime='" + updatedTime + '\'' +
                '}';
    }
}
